#ifndef __GLOBALS__H
#define __GLOBALS__H

#define ARRAY_COUNT(array) (sizeof(array) / sizeof(array[0]) )

#define map_size_x 4
#define map_size_y 4
#define max_player_health 20
#define max_player_money 100
#define max_potion_count 10


enum t_location //constant assigns values automatically
{
	LOCATION_CAVE,
	LOCATION_CLIFFS,
	LOCATION_DEEPS,
	LOCATION_FIELD,
	LOCATION_FOREST,
	LOCATION_CAMP,
	LOCATION_MOUNTAIN,
	LOCATION_VALLEY,
};

//Things contained in each map tile
struct map_tile
{
	t_location location;
	int monster;
	int chest;
};

extern map_tile g_map[map_size_y][map_size_x];
//lives in map.cpp

#endif